package com.tanhua.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserInfoMapper extends BaseMapper<UserInfo> {

    @Select("select info.* from tb_black_list b inner join tb_user_info info on b.black_user_id=info.id and b.user_id=#{userId}")
    IPage<UserInfo> findPage(Page pages, @Param("userId")Long userId);
}
